package edu.cug.water.crawler.test;

import edu.cug.water.crawler.common.utils.EsUtils;
import org.frameworkset.elasticsearch.entity.ESDatas;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.ArrayList;
import java.util.List;

@SpringBootTest
public class UpdateEsData {

    @Autowired
    EsUtils esUtils;

    @Test
    void context() {
        List<String> strings = new ArrayList<>();

        strings.add("60506200");
        ESDatas<?> dataByStationCode = esUtils.getDataByStationCode(strings);


        System.out.println(dataByStationCode);

    }
}
